<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsReplyreviewTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('replyreview', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->bigInteger('comment_uid')->comment('关联用户id');
			$table->bigInteger('bookreview_id')->comment('评论的书评id');
			$table->text('content')->nullable()->comment('评论内容');
			$table->integer('comment_time')->comment('评论时间');
			$table->tinyInteger('status')->nullable()->default(0)->comment('评论状态0为正常1为删除');
			$table->bigInteger('isreply')->nullable()->default(0)->comment('是否回复评论回复是关联评论id');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('replyreview');
	}

}
